import jpype

# Launch the JVM
try:
    jpype.startJVM("D:\\ProgramSoft\\Java\jdk-11.0.14\\bin\server\\jvm.dll",
                   "-ea",
                   "-Dfile.encoding=utf-8"
                   )
except OSError as e:
    print(e)
    exit(0)

jpype.java.lang.System.out.println("已启动JVM.....")

jpype.shutdownJVM()
